<?php
/**
* エラーチェッククラス
**/
require_once( '../system/Class_M_DAO.php' );
class Class_M_NEWYEAR_SHOP extends Class_M_DAO {
	//protected properties begin
	/**
	 *
	 * テーブル名
	 *
	 * @access    protected
	 * @var       string
	 *
	 */
	protected $_table = "M_NEWYEAR_SHOP";
	
	/**
	 *
	 * 主キー名
	 *
	 * @access    protected
	 * @var       string
	 *
	 */
	protected $_pkey = "shop_cd";
	
	/**
	 *
	 * ソート順
	 *
	 * @access    protected
	 * @var       string
	 *
	 */
	 protected $_order = "shop_cd";
	 
	 
	 protected $_cols     = array(
		"shop_cd"    => array(AOKI_VARTYPE_STR),
	 );
	
	 protected $_checks  = array(
		"shop_cd"      => array( "EXIST" )
	 );
	 
	  public function getByMark( $mark ){
	 
	 	$where[] =" a.year_mark = '{$mark}'";
		$sql = "SELECT a.shop_cd,b.shop_name from {$this->_table}  a inner join M_SHOP as b on a.shop_cd = b.shop_cd  ";
		$page= NULL;
		return  parent::search($where ,$page ,$sql);
	}
}

?>